CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmn_operation_area_relation(
id                                                 bigint                         COMMENT '主键ID',
fee_id                                             bigint                         COMMENT '操作费ID',
area_id                                            bigint                         COMMENT '目的地ID',
area_type                                          smallint                       COMMENT '目的地类型1:目的地2:目的网点'
)
COMMENT '操作费明细-目的地关系表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET 
LOCATION '/dw/hive/spmi_ods.db/external/spmn_operation_area_relation'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
)